﻿<%@ Page Title="" Language="C#" MasterPageFile="User.Master" AutoEventWireup="true" CodeBehind="Register.aspx.cs" Inherits="OnlineAuction.TemplateMaster.WebForm4" %>

<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <p>
   <script language="javascript" type="text/javascript">
       function kiemtrausername(source, arguments) {
           var username = document.getElementById("<%= username.ClientID %>").value;
           if (username.length < 6)
               arguments.IsValid = false;
           else
               arguments.IsValid = true;
       }
       function kiemtrapassword(source, arguments) {
           var password = document.getElementById("<%= password.ClientID %>").value;
           if (password.length < 6)
               arguments.IsValid = false;
           else
               arguments.IsValid = true;
       }

</script>
<div class="title"><span class="title_icon"><img src="../TempImages/bullet1.gif" alt="" title="" /></span>Register</div>
        
        	<div >
            <p class="details">
                &nbsp;</p>
            
              	<div class="contact_form">
                <div >Create New Account</div>
                    <br />

<div id="Div1" class="form_row" runat="server">
    <label class="contact"></label>
    <label id="message" class="contact_input" runat="server"></label>
</div><br />

                    
                    <div class="form_row">
                    <label class="contact"><strong>Username <span class="dausao">*</span></strong></label>
                    <input type="text" class="contact_input" runat="server" id="username" /> 
    <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" 
                            ErrorMessage="RequiredFieldValidator" ControlToValidate="username" 
                            Display="Dynamic">Username khong duoc rong</asp:RequiredFieldValidator> 
    <asp:CustomValidator ID="CustomValidator1" runat="server" ErrorMessage="CustomValidator" 
                            ClientValidationFunction="kiemtrausername" ControlToValidate="username">ko nho hon 6 ky tu</asp:CustomValidator>
    
                    </div>  
                    <br />

                    <div class="form_row">
                    <label class="contact"><strong>Password <span class="dausao">&nbsp;*</span></strong></label>
                    <input type="text" class="contact_input" runat="server" id="password" /> 
    <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" 
                            ErrorMessage="RequiredFieldValidator" ControlToValidate="password" 
                            Display="Dynamic">password khong duoc rong</asp:RequiredFieldValidator> 
    <asp:CustomValidator ID="CustomValidator2" runat="server" ErrorMessage="CustomValidator" 
                            ClientValidationFunction="kiemtrapassword" ControlToValidate="password">ko nho hon 6 ky tu</asp:CustomValidator>
    
                    </div> 
                    <br />
<div class="form_row">
                    <label class="contact"><strong>Full Name <span class="dausao">&nbsp;*</span></strong></label>
                    <input type="text" class="contact_input" runat="server" id="fullname" />
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" 
                            ErrorMessage="RequiredFieldValidator" ControlToValidate="fullname" 
                            Display="Dynamic">fullname khong duoc rong</asp:RequiredFieldValidator> 
                    </div><br />
                    <div class="form_row">
                    <label class="contact"><strong>Email&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <span class="dausao">&nbsp;*</span></strong></label>
                    <input type="text" class="contact_input" runat="server" id="email" /> 
    <asp:RequiredFieldValidator ID="RequiredFieldValidator4" runat="server" 
                            ErrorMessage="RequiredFieldValidator" ControlToValidate="email" 
                            Display="Dynamic">email khong duoc rong</asp:RequiredFieldValidator> 
                        <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" 
                            ControlToValidate="email" Display="Dynamic" 
                            ErrorMessage="RegularExpressionValidator" 
                            ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*">email ko hop le</asp:RegularExpressionValidator>
                    </div>
                    <br />

                    <div class="form_row">
                    <label class="contact"><strong>Phone <span class="dausao">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; *</span></strong></label>
                    <input type="text" class="contact_input" runat="server" id="phone" /> 
    <asp:RequiredFieldValidator ID="RequiredFieldValidator7" runat="server" 
                            ErrorMessage="RequiredFieldValidator" ControlToValidate="phone" 
                            Display="Dynamic">phone khong duoc rong</asp:RequiredFieldValidator> 
                    </div>
                    <br />
                    
                    
                    <div class="form_row">
                    <label class="contact"><strong>Adrres <span class="dausao">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; *</span></strong></label>
                    <input type="text" class="contact_input" runat="server" id="address" />
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator6" runat="server" 
                            ErrorMessage="RequiredFieldValidator" ControlToValidate="address" 
                            Display="Dynamic">address khong duoc rong</asp:RequiredFieldValidator> 
                    </div>                    
                    <br />
                    <div class="form_row">
                        <div class="terms">
                        <input type="checkbox" name="terms" runat="server" id="accept" />
                        I agree to the  </div>
                    </div> 
                    <br />
                    
                    <div class="form_row">
                        <asp:Button ID="Buttonsubmit" runat="server" Text="Submit" 
                            onclick="Buttonsubmit_Click"/>
&nbsp;</div>   
                  
                </div>  
            
          </div>
</p>
</asp:Content>

